projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a07c647
)
New function eieio-declare-slots
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 17 Jun 2019 13:46:09 +0000
(15:46 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 17 Jun 2019 13:46:09 +0000
(15:46 +0200)
* lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): New
function to suppress compiler warnings about unknown slots.
lisp/emacs-lisp/eieio-core.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/eieio-core.el
b/lisp/emacs-lisp/eieio-core.el
index 01a821ed2a1eace3316f8967132d20c57e42ec17..b6acab2a25a37779ecce34b1c4fa561a5a86c2c4 100644
(file)
--- a/
lisp/emacs-lisp/eieio-core.el
+++ b/
lisp/emacs-lisp/eieio-core.el
@@
-1085,6
+1085,10
@@
method invocation orders of the involved classes."
These match if the argument is the name of a subclass of CLASS."
(list eieio--generic-subclass-generalizer))
+(defun eieio-declare-slots (&rest slots)
+ "Declare that SLOTS are known eieio object slot names."
+ (setq eieio--known-slot-names (append slots eieio--known-slot-names)))
+
(provide 'eieio-core)
;;; eieio-core.el ends here